<%-- 
    Document   : login
    Created on : Oct 24, 2012, 9:23:35 PM
    Author     : berto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>login</title>
    </head>
    <body>
                <%
                String mess="";
                  if(request.getParameter("login")!=null){
                      mess="Username or password incorrect";
                  }
                %>
                <p id="login_error_log"><%=mess%></p>
                <form name="form_login" method="post" action="<%=response.encodeURL(request.getContextPath()+"/services/login")%>" >
                        <label>Username:</label>
                        <input type="text" name="username" 
                                 value="<%=(request.getParameter("username")!=null)? request.getParameter("username"):""%>"/>
                        <label>Password:</label>
                        <input type="password" name="password" value=""/>
                        <br/>
                        <input type="button" name="Login" value="Login" onclick="ValidateLogin()"/>
                        <script type="text/javascript" src="<%=request.getContextPath()%>/javascript/login.js"></script>
                </form>
                <p>Forgot password?</p>
                <a href="<%=request.getContextPath()%>/contents/public/requestNewPassword.jsp" title="Request new password">Request new password</a>
                <br/>
                <p>Not Registered?</p>
                <a href="<%=request.getContextPath()%>/contents/public/register.jsp" title="Register">Register</a>
    </body>
</html>
